package cn.com.connext.scrm.task;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class CouponExpirationReminderTask{

//    @Autowired
//    private CourseOrderService courseOrderService;

//    private final Logger log = LoggerFactory.getLogger(CourseOrdersEntity.class);
    //@Scheduled(cron = "0 0 1,2,3,4,5,6 * * ?") //每天凌晨1-6点执行；
    @Scheduled(cron = "0 0 */1 * * ?") //每小时执行一次
    //@Scheduled(cron= "0 */1 * * * ?")//每分钟执行；
    public void countTask() {
        // log.info("开始执行");
//    	courseOrderService.cancelCourseOrderTask();
        //  log.info("执行结束");
    }
}
